﻿<?xml version="1.0" encoding="UTF-8"?>
<customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2009/07/customui">
  <ribbon>
    <tabs>
      <tab id="MainTab" label="ATTACHMENT HANDLER" getVisible="GetTabVisibility">
        <group id="group2" label="Attachment Handler">
          <button id="RunButton" onAction="OnRunButtonClick" label="Run with predefinied settings" size="large" imageMso="SaveAttachments" supertip="Run the Attachment Handler with your predefinied settings." />
        </group>
        <group id="group1" label="Attachment Handler Settings">
          <button id="ConfigureButton" onAction="OnConfigureButtonClick" label="Configure" size="large" imageMso="TableSharePointListsModifyColumnsAndSettings" supertip="Configure Attachment Handler." />
        </group>
        <group id="group3" label="About" imageMso="Info">
          <labelControl id="label1" label=" " />
          <button id="label2" label="Thomas Heuberger, 2014" imageMso="CondolatoryEvent" enabled="false"/>
          <labelControl id="label3" getLabel="GetLabelBuildVersion" />
        </group>
      </tab>
    </tabs>
  </ribbon>
  <contextMenus>
    <contextMenu idMso="ContextMenuFolder">
      <button id="SaveAttachmentsContextMenuButton"
          imageMso="SaveSentItemsMenu"
          onAction="OnSaveAttachmentsButtonClick"
          getLabel="GetLabelContextMenu" />
    </contextMenu>
    <contextMenu idMso="ContextMenuMailItem">
      <button id="SaveAttachmentsMailButton"
          imageMso="AttachItem"          
          onAction="OnSaveAttachmentsButtonClick"
          getEnabled="GetMailItemsContextMenuEnabled"
          getLabel="GetLabelMailItems" />
    </contextMenu>
    <contextMenu idMso="ContextMenuMultipleItems">
      <button id="SaveAttachmentsMultipleMailButton"
          imageMso="AttachItem"
          onAction="OnSaveAttachmentsButtonClick"
          getEnabled="GetMailItemsContextMenuEnabled"
          getLabel="GetLabelMailItems" />
    </contextMenu>
  </contextMenus>
</customUI>